import {defineConfig} from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path';

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [vue()],
    server: {
        port: 8848,
        host: '0.0.0.0',
        https: false // 不开启https
    },
    build: {
        outDir: path.resolve(__dirname, '../server-src/src/client')
    },
    css: {
        // css预处理器
        preprocessorOptions: {
            scss: {
            }
        }
    },
});
